﻿using System.Collections.ObjectModel;

namespace iStudio.Library.Dsp
{
    /// <summary>
    /// Represents ARMA digital filter
    /// </summary>
    public sealed class SignalFilter
    {
        private readonly ReadOnlyCollection<double> _a;
        private readonly ReadOnlyCollection<double> _b;

        public SignalFilter (double[] a, double[] b)
        {
            _a = new ReadOnlyCollection<double>(a);
            _b = new ReadOnlyCollection<double>(b);
        }

        public ReadOnlyCollection<double> A
        {
            get
            {
                return _a;
            }
        }

        public ReadOnlyCollection<double> B
        {
            get
            {
                return _b;
            }
        }
    }
}
